package com.qingzhuge.verification.dto;

import com.aliyuncs.cloudauth.model.v20180916.GetVerifyTokenResponse;
import com.qingzhuge.verification.enums.EnumCloudType;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author : zero.xiao
 * @description :
 * @date : 2018/10/10 0010 上午 9:29
 * @modified :
 * @since :
 */
@Data
public class UserAuthResponse implements Serializable {
    private static final long serialVersionUID = 2868864771085952478L;
    private GetVerifyTokenResponse response;
    /**云系统*/
    private EnumCloudType type;
    @NotBlank
    private String ticketId;
    @NotBlank
    private String token;
    /**H5认证页*/
    private String h5page;
    private Boolean status;
    private String json;
    public UserAuthResponse() {
    }

    public UserAuthResponse(String ticketId, String token) {
        this.ticketId = ticketId;
        this.token = token;
    }

    public UserAuthResponse(@NotBlank String ticketId, @NotBlank String token, String h5page) {
        this.ticketId = ticketId;
        this.token = token;
        this.h5page = h5page;
    }

    public UserAuthResponse(EnumCloudType type,String ticketId, String token) {
        this.type = type;
        this.ticketId = ticketId;
        this.token = token;
    }
}
